package zen2d.example.lol;

import zen2d.GraphicsContext;
import zen2d.Sprite;
import zen2d.util.AssertUtil;


import java.awt.image.BufferedImage;

public class BackGround extends Sprite {
    BufferedImage bg;
    public BackGround(int x, int y, int width, int height) {
        super(x, y, width, height);
        bg = AssertUtil.getImage("image/lol/map.jpg");
    }

    @Override
    protected void afterEndLive() {

    }

    @Override
    protected void update() {

    }

    @Override
    protected void draw(GraphicsContext graphicsContext) {
        graphicsContext.drawImage(bg,x,y);
    }

    @Override
    protected void up() {

    }

    @Override
    protected void down() {

    }

    @Override
    protected void left() {

    }

    @Override
    protected void right() {

    }

    @Override
    protected void space() {

    }
}
